<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1"> 
<title>Yapm</title>

<link rel="shortcut icon" href="static/favicon.ico" mce_href="/dir/favicon.ico" type="image/x-icon">
<!-- Framework CSS -->
<link rel="stylesheet" href="static/css/blueprint/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="static/css/blueprint/print.css" type="text/css" media="print">
<!--[if lt IE 8]><link rel="stylesheet" href="../../blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->

<!-- Import fancy-type plugin for the sample page. -->
<link rel="stylesheet" href="static/css/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">

<style>
	h6{
		 text-align:center;
		 font-size:13px;
		 font-weight:100;
		 color:333;
	}
	#login{
		 border:5px solid #d7d7d7;
		 background:#eee;
		 padding:15px;
		 margin-top:100px;
	 	 -moz-border-radius: 8px;
	 	 -khtml-border-radius: 8px;
	 	 -webkit-border-radius: 8px;
	 	 border-radius: 8px;
 	 }
 	 #login label{
		 font-weight:100;
		 color:333;
 	 }
 	 #login fieldset{
		 border:0;
	 }
	 #login legend , label{
		 font-size:14px;
		 color:#666;
		 font-weight:100;
		 text-align:center;
 	 }
</style>

</head>
<body>
	 <div class="container">

	 <div class="span-7">
	 	 <br />
	 </div>

	 <div class="span-10" id="login">
	 	 <form action="/dologin" method="post">
	 	 <fieldset>
		 <p>
	 	 
		 {%if auth_fail_code == 1%}
		 	 <b>用户名或密码错误</b>
		 {%elif auth_fail_code == 2%}
		 	 <b>请完整填写登录表单</b>
		 {%elif auth_fail_code == 3%}
	 	 	 <b>该用户不存在</b>
	 	 {%endif%}
	 	 </p>
	 	 <legend>登录 Yapm</legend>
	 	 <p>
	 		  <label for="username">用户名</label><br />
	 	 	  <input type="text" class="title" name="username" id="username" value="">
	 	 </p>

	 	 <p>
	 		 <label for="passwd">登录密码</label><br />
	 	 	 <input type="password" class="text" id="passwd" name="passwd" value="">
	 	 </p>

		 <br />

		 <p>
	 	 <label>选择角色</label>
	 	 	 <input type="radio" name="role" value="user" checked="true"> 普通用户
	 	 	 <input type="radio" name="role" value="admin"> 管理员
	 	 	 <input type="radio" name="role" value="worker"> 维护人员
	 	 </p>

	 	 <br />

	 	 <p>
	 	 	 <input type="submit" value="登录">
	 	 	 <input type="reset" value="重置表单">
	 	 </p>

	 </fieldset>
	 </form>

	 </div>
	 	 <div class="span-7 last">
	 	 <br />
	 </div>

	 </div>
</div>
</body>
</html>

